import { Module } from '@nestjs/common';
import { TypeOrmModule } from '@nestjs/typeorm';
import { Article } from './article.entity';
import { ArticleService } from './article.service';
import { ArticleController } from './article.controller';
import { ArticleViewController } from './article-view.controller';
import { ArticleEditorController } from './article-editor.controller';
import { AuthModule } from '../auth/auth.module';
import { CategoryModule } from '../category/category.module';

@Module({
  imports: [TypeOrmModule.forFeature([Article]), AuthModule, CategoryModule],
  providers: [ArticleService],
  controllers: [ArticleController, ArticleViewController, ArticleEditorController],
  exports: [ArticleService],
})
export class ArticleModule {}